package com.ruoyi.framework.config;


import org.springframework.context.annotation.Bean;

/**
 * MyBatisPlus配置
 *
 * @author ruoyi
 */
public class MyBatisPlusConfig {

    /**
     * 注册乐观锁插件
     */
//    @Bean
//    public MybatisPlusInterceptor mybatisPlusInterceptor() {
//        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
//        interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor());
//        return interceptor;
//    }
}
